Add information about progressbar migration
authorMatthias Clasen <mclasen@redhat.com>
Thu, 2 Sep 2010 04:05:32 +0000 (00:05 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 2 Sep 2010 04:05:32 +0000 (00:05 -0400)
Add a section to the migration guide about GtkProgressBar.
Also, actually include the wrap box docs.

docs/reference/gtk/gtk-docs.sgml
docs/reference/gtk/migrating-2to3.xml

index 4e97d0b6053a52a9239c741e8622da0ed8786bb9..34c1aa1be220d006dd50e2cd2b88407cf3653655 100644 (file)
@@ -307,6 +307,7 @@ that is, GUI components such as #GtkButton or #GtkTextView.
       <xi:include href="xml/gtkbbox.xml" />
       <xi:include href="xml/gtkhbbox.xml" />
       <xi:include href="xml/gtkvbbox.xml" />
+      <xi:include href="xml/gtkwrapbox.xml" />
       <xi:include href="xml/gtkfixed.xml" />
       <xi:include href="xml/gtkpaned.xml" />
       <xi:include href="xml/gtkhpaned.xml" />
index 389a578c0dbd588b7655bfa5513758c89c1a8ed3..bcc27b88445c264d47abc022f47955621a2becd0 100644 (file)
@@ -380,6 +380,35 @@ cairo_destroy (cr);
     </para>
   </section>
 
+  <section>
+    <title>GtkProgressBar orientation</title>
+
+    <para>
+      In GTK+ 2.x, #GtkProgressBar and #GtkCellRendererProgress were using the
+      GtkProgressBarOrientation enumeration to specify their orientation and
+      direction. In GTK+ 3, both the widget and the cell renderer implement
+      #GtkOrientable, and have an additional 'inverted' property to determine
+      their direction. Therefore, a call to gtk_progress_bar_set_orientation()
+      needs to be replaced by a pair of calls to
+      gtk_orientable_set_orientation() and gtk_progress_bar_set_inverted().
+      The following values correspond:
+      <table>
+        <tgroup cols="3">
+          <thead>
+            <row><entry>GTK+ 2.x</entry><entry morerows="1">GTK+ 3</entry></row>
+            <row><entry>GtkProgressBarOrientation</entry><entry>GtkOrientation</entry><entry>inverted</entry></row>
+          </thead>
+          <tbody>
+            <row><entry>GTK_PROGRESS_LEFT_TO_RIGHT</entry><entry>GTK_ORIENTATION_HORIZONTAL</entry><entry>FALSE</entry></row>
+            <row><entry>GTK_PROGRESS_RIGHT_TO_LEFT</entry><entry>GTK_ORIENTATION_HORIZONTAL</entry><entry>TRUE</entry></row>
+            <row><entry>GTK_PROGRESS_TOP_TO_BOTTOM</entry><entry>GTK_ORIENTATION_VERTICAL</entry><entry>FALSE</entry></row>
+            <row><entry>GTK_PROGRESS_BOTTOM_TO_TOP</entry><entry>GTK_ORIENTATION_VERTICAL</entry><entry>TRUE</entry></row>
+          </tbody>
+        </tgroup>
+      </table>
+    </para>
+  </section>
+
   <section>
     <title>Prevent mixed linkage</title>
     <para>